package stegosaur.volume;

/**
 * <p>
 * An interface that can be implemented by classes that wish to receive
 * notification on volume events.
 * </p>
 *
 * @see stegosaur.Volume
 * @author gndn.k5
 * @since Stegosaur 1.0
 */
public interface VolumeEventListener
{
  /**
   * Fires periodically during a volume format to indicate current status.
   * Return true to continue with the formatting, or false to cancel it.
   */
  public boolean volumeFormatEvent(Volume src, int currentStep, int totalSteps);
}
